<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@tag pageEncoding="UTF-8" %>
<%@attribute name="id" required="true" %>
<%@attribute name="title" required="true" %>
<%@attribute name="placeholder" required="false" %>
<%@attribute name="verify" required="false" %>
<%@attribute name="data" required="true" type="java.lang.Object" %>
<%@attribute name="optionvalue" required="true" %>
<%@attribute name="optionlabel" required="true" %>
<div class="layui-inline">
    <label class="layui-form-label">${title}</label>
    <div class="layui-input-inline">
        <select name="${id}" id="${id}" lay-verify="${verify}" title="${title}" lay-search>
            <option value="">${placeholder==null?title:placeholder}</option>
            <c:forEach items="${data}" var="d">
                <option value="${d[optionvalue]}">${d[optionlabel]}</option>
            </c:forEach>
        </select>
    </div>
</div>
